import { FormItem } from '../types/index'
import { ColProps } from 'element-plus'
import { assign } from 'fair-wing'
export default (item: FormItem, colLayout: Partial<ColProps> = {}) => {
  let layout = {}
  layout = {
    // xl: 4,
    // lg: 6,
    // md: 8,
    // sm: 12,
    // xs: 24,
    span: 12,
  }
  return assign({}, layout, colLayout ?? {}, item.layout ?? {}) //  item.layout || colLayout || layout
}
